﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Autorent.Desktop.Main;
using Autorent.Desktop.Modules.Reports.ViewModels;

namespace Autorent.Desktop.Modules.Reports
{
    /// <summary>
    /// Interaction logic for MainReportsView.xaml
    /// </summary>
    public partial class MainReportsView : UserControl
    {
        public MainReportsView()
        {
            InitializeComponent();
        }

        public MainReportsViewModel Model
        {
            get { return this.DataContext as MainReportsViewModel; }
            set { this.DataContext = value; }
        }

        private void OfficeReportsButton_Click(object sender, RoutedEventArgs e)
        {
            tbOfficeReports.Visibility = System.Windows.Visibility.Visible;
            tbCompanyReports.Visibility = System.Windows.Visibility.Hidden;
        }

        private void CompanyReportsButton_Click(object sender, RoutedEventArgs e)
        {
            tbCompanyReports.Visibility = System.Windows.Visibility.Visible;
            tbOfficeReports.Visibility = System.Windows.Visibility.Hidden;
        }
    }
}
